﻿using Kstopa.Domain.Entities;

namespace Kstopa.Domain;

[SugarTable("mac_one_check", TableDescription = "点检数据表")]
[Tenant(SqlsugarConst.DB_Default)]
public class MacOneCheck :BaseEntity
{
    /// <summary>
    /// 车间工单号
    /// </summary>
    [SugarColumn(ColumnName = "Sono", ColumnDescription = "车间工单号")]
    public string Sono { get; set; }
    /// <summary>
    /// 设备编号
    ///</summary>
    [SugarColumn(ColumnName = "EquipmentCode", ColumnDescription = "设备编号", Length = 200, IsNullable = true)]
    public string EquipmentCode { get; set; }
    // <summary>
    /// 工序名称
    ///</summary>
    [SugarColumn(ColumnName = "EquipmentName", ColumnDescription = "设备名称", Length = 200, IsNullable = true)]
    public string EquipmentName { get; set; }
    /// <summary>
    /// 工序编号
    ///</summary>
    [SugarColumn(ColumnName = "ProcedureCode", ColumnDescription = "工序编号", Length = 200,IsNullable =true)]
    public string  ProcedureCode { get; set; }

    /// <summary>
    /// 工序名称
    ///</summary>
    [SugarColumn(ColumnName = "ProcedureName", ColumnDescription = "工序名称", Length = 200, IsNullable = true)]
    public string ProcedureName { get; set; }

    /// <summary>
    /// 工序名称
    ///</summary>
    [SugarColumn(ColumnName = "OnCheckJson", ColumnDescription = "点检数据Json", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
    public string OnCheckJson { get; set; }
    /// <summary>
    /// 工序名称
    ///</summary>
    [SugarColumn(ColumnName = "IsUploadMes", ColumnDescription = "是否上传mes", IsNullable = true)]
    public bool IsUploadMes { get; set; }
}

public class OneCheckData
{
    /// <summary>
    /// 点检项目
    /// </summary>
    public string Onecheck_name { get; set; }
    /// <summary>
    /// 点检内容
    /// </summary>
    public string Onecheck_content { get; set; }
    /// <summary>
    /// 点检结果
    /// </summary>
    public string Onecheck_result { get; set;}
}
